package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.YktAccessEventMapper;
import com.ruoyi.system.domain.YktAccessEvent;
import com.ruoyi.system.service.IYktAccessEventService;
import com.ruoyi.common.core.text.Convert;

/**
 * 门禁事件记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-11-10
 */
@Service
public class YktAccessEventServiceImpl implements IYktAccessEventService 
{
    @Autowired
    private YktAccessEventMapper yktAccessEventMapper;

    /**
     * 查询门禁事件记录
     * 
     * @param id 门禁事件记录主键
     * @return 门禁事件记录
     */
    @Override
    public YktAccessEvent selectYktAccessEventById(String id)
    {
        return yktAccessEventMapper.selectYktAccessEventById(id);
    }

    /**
     * 查询门禁事件记录列表
     * 
     * @param yktAccessEvent 门禁事件记录
     * @return 门禁事件记录
     */
    @Override
    public List<YktAccessEvent> selectYktAccessEventList(YktAccessEvent yktAccessEvent)
    {
        return yktAccessEventMapper.selectYktAccessEventList(yktAccessEvent);
    }

    /**
     * 新增门禁事件记录
     * 
     * @param yktAccessEvent 门禁事件记录
     * @return 结果
     */
    @Override
    public int insertYktAccessEvent(YktAccessEvent yktAccessEvent)
    {
        return yktAccessEventMapper.insertYktAccessEvent(yktAccessEvent);
    }

    /**
     * 修改门禁事件记录
     * 
     * @param yktAccessEvent 门禁事件记录
     * @return 结果
     */
    @Override
    public int updateYktAccessEvent(YktAccessEvent yktAccessEvent)
    {
        return yktAccessEventMapper.updateYktAccessEvent(yktAccessEvent);
    }

    /**
     * 批量删除门禁事件记录
     * 
     * @param ids 需要删除的门禁事件记录主键
     * @return 结果
     */
    @Override
    public int deleteYktAccessEventByIds(String ids)
    {
        return yktAccessEventMapper.deleteYktAccessEventByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除门禁事件记录信息
     * 
     * @param id 门禁事件记录主键
     * @return 结果
     */
    @Override
    public int deleteYktAccessEventById(String id)
    {
        return yktAccessEventMapper.deleteYktAccessEventById(id);
    }
}
